﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="UserNetwork.aspx.cs" Inherits="WebAccess.UserNetwork" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table style="width:100%;">
        <tr>
            <td>
                User</td>
            <td>
               <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" 
                    DataSourceID="SqlDataSource1" DataTextField="username" DataValueField="userid" 
                    onselectedindexchanged="DropDownList1_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:sensorsConnectionString %>" 
                    SelectCommand="SELECT * FROM [user]"></asp:SqlDataSource>
            </td>
        
        </tr>
        <tr>
            <td colspan =2>
                Network</td>
          
         
        </tr>
        <tr>
            <td colspan = 2>
                <asp:CheckBoxList ID="CheckBoxList1" runat="server" 
                    DataSourceID="SqlDataSource2" DataTextField="network_name" 
                    DataValueField="network_id" 
                    onselectedindexchanged="CheckBoxList1_SelectedIndexChanged">
                </asp:CheckBoxList>
                
                <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:sensorsConnectionString %>" 
                    SelectCommand="SELECT * FROM [network]"></asp:SqlDataSource>
                
             </td>
        
        </tr>
        <tr>
        <td>
        
            <asp:Button ID="Button1" runat="server" Text="Submit" onclick="Button1_Click" />
        
        </td>
        
        </tr>
    </table>
</asp:Content>
